"""
@name : collect
@author : FanMY_71
@projectname: Selling-Idea
@Time: 2022/9/5-20:46
"""
from model import db


class Collect(db.Model):
    collect_id = db.Column(db.Integer,primary_key=True,autoincrement=True)
    article_id = db.Column(db.ForeignKey("articles.article_id"), nullable=False)
    user_id = db.Column(db.ForeignKey("users.user_id"), nullable=False)
    collect = db.Column(db.Enum("Y", "N"),default="N")